package com.newasia.management.dto.user.user;

import com.newasia.commons.result.AbstractRequest;
import com.newasia.commons.tool.exception.ValidateException;
import com.newasia.management.constants.ManagementRetCode;
import lombok.Data;

@Data
public class DeleteSysUserRequset extends AbstractRequest{

    private Long userId;

    @Override
    public void requestCheck() {
        if(userId==null){
            throw new ValidateException(
                    ManagementRetCode.REQUEST_CHECK_FAILURE.getCode(),
                    ManagementRetCode.REQUEST_CHECK_FAILURE.getMessage());
        }
    }
}
